//*************************************************************************************************
//Copyright (c) 2015.year. @hjjer.
//If you are a hjjer(hejianjiao.org), This code is unlicensed, otherwise,is licensed under the GPL.
//*************************************************************************************************

package com.truthbean.ssm.demo.service;

import com.truthbean.ssm.demo.domain.entity.Enroll;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author Truthbean
 * @since 2015-12-16 20:12:09
 */
public interface EnrollService {

    boolean save(Enroll enroll);

    boolean updateArea(String newArea, String oldArea);

    boolean deleteEnroll(String area);

    boolean updateYear(int oldYear, String enrollArea, String newYear);

    boolean addYear(String enrollArea, int newYear);

    Set<String> queryYearsOverPage(int begin, int size);

    Set<String> queryAllYears();

    List<String> queryAreasOverPage(int begin, int size);

    List<String> queryAllAreas();

    int[] queryYearByArea(String area);

    boolean batchDeleteEnroll(String[] area);

    boolean batchDeleteYear(String[] area, String year);

    boolean batchAddYear(String[] enrollArea, int newYear);

    Map<String, String[]> queryEnrollOverPage(int begin, int size);

    Map<String, String[]> queryAll();

    int countEnroll();

    boolean isAreaExist(String area);
}
